package ch7oopexer1;

public class KeJi extends Plane{//客机有座位数，自重，飞行高度等属性
    private int seat;

    public KeJi() {
    }

    public KeJi(double weight, double height, int seat) {
        super(weight, height);
        this.seat = seat;
    }

    //都有起飞，加速，降落等方法，但是过程不同；
    public void run(){
        System.out.println("客机起飞");
    }
    public void accelerate(){
        System.out.println("客机加速");
    }
    public void land (){
        System.out.println("客机降落");
    }
    public void show(){
        super.show();
        System.out.println("载客数量："+seat);
    }
}
